package com.xy.demo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.converters.doubleconverter.DoubleNumberConverter;
import com.alibaba.excel.converters.longconverter.LongNumberConverter;
import com.xy.demo.excel.converter.LongDateConverter;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.poi.ss.util.DateFormatConverter;

import java.util.Date;


@Data
public class ExcelOne {

    @ExcelProperty(index = 0)
    private String fieldOne;
//
//    @ExcelProperty(index = 1 ,converter = LongDateConverter.class)  //自定义时间转换
//    private Long  fieldSecond;
//
//    @ExcelProperty(index = 2 ,converter = DoubleNumberConverter.class)
//    private Double filedThird;


    public String getFieldOne() {
        return fieldOne;
    }

    public void setFieldOne(String fieldOne) {
        this.fieldOne = fieldOne;
    }

//    public Long getFieldSecond() {
//        return fieldSecond;
//    }
//
//    public void setFieldSecond(Long fieldSecond) {
//        this.fieldSecond = fieldSecond;
//    }
//
//    public Double getFiledThird() {
//        return filedThird;
//    }
//
//    public void setFiledThird(Double filedThird) {
//        this.filedThird = filedThird;
//    }
}
